//package com.jackrain.nea.web.controller;
//
//import com.jackrain.nea.util.ShiroSessionUtil;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.Model;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
///**
// * Created by Lucky dog on 2016/10/26.
// */
//@Controller
//@Slf4j
//public class HelloController {
//
//    @RequestMapping("/")
//    public String doHello(HttpServletRequest request, HttpServletResponse response, Model model) throws Exception {
////
////            try {
////                if(ShiroSessionUtil.isLogin()) {
////                    //request.getRequestDispatcher("/u/dashboard-v1").forward(request, response);
////                    response.sendRedirect("/app/tpl/ctl/index");
////                    return null;
////                }
////
////            } catch (Exception e) {
////                log.error(e.getMessage());
////            }
//
//        response.sendRedirect("/login");
//        model.addAttribute("type","tpl");
//        return null;
//    }
//
//
//    @RequestMapping("/login")
//    public String doLogin(Model model) {
//        if(ShiroSessionUtil.isLogin()) {
//            return "/tpl/ctl/index";
//        }
//        model.addAttribute("type","tpl");
//        return "tpl/pub/login/login";
//    }
//
//}